package com.mes.controller;

import com.fasterxml.jackson.databind.ObjectMapper;
import com.mes.model.Employee;
import com.mes.service.IEmployee;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;

import javax.annotation.Resource;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import java.io.IOException;

@Controller
@RequestMapping("/Employee")
//员工信息
public class EmployeeController {/*
    @Resource
    private IEmployee EmployeeService;

    @RequestMapping("/showUser.do")
    public void selectUser(HttpServletRequest request, HttpServletResponse response) throws IOException {
        request.setCharacterEncoding("UTF-8");
        response.setCharacterEncoding("UTF-8");
        long userId = Long.parseLong(request.getParameter("id"));
      //  Employee employee = this.userService.selectUser(userId);
        ObjectMapper mapper = new ObjectMapper();
      //  response.getWriter().write(mapper.writeValueAsString(employee));
        response.getWriter().close();
    }
*/
}
